<div class="zs-body" data-ng-init="formInit('gzddtz', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzddtz');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">调度台账</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="查看" ng-click="addRow('gzddtz') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="成本消耗认定" ng-click="addRow('gzddtz') && openWindow('edit');" />
            <!-- <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzddtz') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzddtz', gzddtz.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzddtz')"/>-->
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzddtz.queryObject['id']"/>
                </span>-->
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="资源类型" ng-model="gzddtz.queryObject['szylx']" />
                </span>

                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="分配部门" ng-model="gzddtz.queryObject['sfpbm']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="使用人" ng-model="gzddtz.queryObject['ssyr']" />
                </span>
                <!-- <span class="search-warpper">
                    <ag-Datebox id='qi_dsysj' showcurday='gzddtz.editRow.FIELD_ISNEW' class="zs-input" style="width:175px;height: 28px"
                        ng-model="gzddtz.queryObject['dsysj']">
                    </ag-Datebox>
                </span> -->
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="使用情况" ng-model="gzddtz.queryObject['ssyqk']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="成本消耗" ng-model="gzddtz.queryObject['scbxh']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="所属项目" ng-model="gzddtz.queryObject['sssxm']"/>
                </span>-->
            </div>
            <div class="operation item" style="margin-top:7px;">
				<input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gzddtz')" />
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gzddtz','allCheckbox');" />
                                    </th>
                                    <!--<th>唯一编号</th>-->
                                    <th>资源类型</th>
                                    <th>购置时间</th>
                                    <th>分配部门</th>
                                    <th>使用人</th>
                                    <th>使用时间</th>
                                    <th>使用情况</th>
                                    <th>成本消耗</th>
                                    <th>所属项目</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzddtz.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gzddtz',r);" ng-model="r.selected" />
                                    </td>
                                    <!--  唯一编号 -->
                                    <!--<td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
                                    <!--  资源类型 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.szylx"></label>
                                        </a>
                                    </td>
                                    <!--  购置时间 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.dgzsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  分配部门 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.sfpbm"></label>
                                        </a>
                                    </td>
                                    <!--  使用人 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.ssyr"></label>
                                        </a>
                                    </td>
                                    <!--  使用时间 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.dsysj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  使用情况 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.ssyqk"></label>
                                        </a>
                                    </td>
                                    <!--  成本消耗 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.scbxh"></label>
                                        </a>
                                    </td>
                                    <!--  所属项目 -->
                                    <td>
                                        <a ng-click="editRow('gzddtz',r) && openWindow('edit');">
                                            <label ng-bind="r.sssxm"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzddtz'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="成本消耗认定" width='760px' height='220px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>资源类型
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzddtz.editRow.szylx" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="资源类型" required ng-model="gzddtz.editRow.szylx"
                                            name="form_szylx" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>购置时间
                                </td>
                                <td class="left" width="30%">
                                    <span>
                                        <ag-Datebox id='fi_dgzsj' showcurday='gzddtz.editRow.FIELD_ISNEW' class="zs-input"
                                            style="width:214px;height: 28px" ng-model="gzddtz.editRow.dgzsj">
                                        </ag-Datebox>
                                    </span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="购置时间" required ng-model="gzddtz.editRow.dgzsj"
                                            name="form_dgzsj" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>分配部门
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzddtz.editRow.sfpbm" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="分配部门" required ng-model="gzddtz.editRow.sfpbm"
                                            name="form_sfpbm" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>使用人
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzddtz.editRow.ssyr" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="使用时间" required ng-model="gzddtz.editRow.ssyr"
                                            name="form_ssyr" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>使用时间
                                </td>
                                <td class="left" width="30%"><span>
                                        <ag-Datebox id='fi_dsysj' showcurday='gzddtz.editRow.FIELD_ISNEW' class="zs-input"
                                            style="width:214px;height: 28px" ng-model="gzddtz.editRow.dsysj">
                                        </ag-Datebox>
                                    </span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="使用时间" required ng-model="gzddtz.editRow.dsysj"
                                            name="form_dsysj" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>使用情况
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzddtz.editRow.ssyqk" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="使用情况" required ng-model="gzddtz.editRow.ssyqk"
                                            name="form_ssyqk" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>成本消耗
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzddtz.editRow.scbxh" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="成本消耗" required ng-model="gzddtz.editRow.scbxh"
                                            name="form_scbxh" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>所属项目
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzddtz.editRow.sssxm" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="所属项目" required ng-model="gzddtz.editRow.sssxm"
                                            name="form_sssxm" /></span>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gzddtz', gzddtz.editRow, saveCloseWindow)" />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>